package com.i18n.moka;

import java.time.LocalDateTime;
import java.time.format.TextStyle;
import java.util.Locale;

public class DayOfWeekDisplayConvert implements FiledConvert  {

    @Override
    public String convert(String content, LocalDateTime time, String locale, String dateTimeIdentifier)  {
        content = content.replaceAll(dateTimeIdentifier,
                time.getDayOfWeek().getDisplayName(TextStyle.FULL, Locale.forLanguageTag(locale)));
        return content;
    }
}
